Skip to main content

安装 JDK(1.8及以上)

进入目录opt,下载一键安装脚本,并执行

cd /opt/
wget https://redoop-public-1.oss-cn-beijing.aliyuncs.com/redoop/9.1/x86/scripts/install_jdk.sh
sh install_jdk.sh

一键安装后的jdk位置为:

/opt/redoop/java/jdk/

使环境变量生效

source /etc/profile 
# 查看是否生效 
java -version
#java version "1.8.0_112" Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
#Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)